package com.net.xpay.common.domain.partner;

import com.net.common.domain.CommonDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * 2020/9/3 15:15

 * 合伙人佣金结算记录
 */
@Getter
@Setter
@NoArgsConstructor
public class PartnerSettleLog extends CommonDomain {

    @ApiModelProperty(notes = "合伙人id")
    private Long partnerId;

    @ApiModelProperty(notes = "结算的开始日期")
    private LocalDate startDay;

    @ApiModelProperty(notes = "结算的结束日期")
    private LocalDate endDay;

    @ApiModelProperty(notes = "分佣 分")
    private Long benefit;

    @ApiModelProperty(notes = "成功笔数")
    private Long successCount;

    @ApiModelProperty(notes = "成功总金额")
    private BigDecimal successAmount;

    @ApiModelProperty(notes = "合伙人佣金统计结果ids")
    private List<Long> partnerSettleRecordIds;

    @ApiModelProperty(notes = "结算统计结果快照 用来排查问题")
    private String statSnapJson;

    @ApiModelProperty(notes = "备注")
    private String remark;

    public static PartnerSettleLog getInstance() {
        return new PartnerSettleLog();
    }
}
